
export ROOT_PATH=$(shell pwd)
export SRC_PATH=$(ROOT_PATH)/src
export TARGET=$(ROOT_PATH)/Target

#1--linux 2---openwrt
OS_NAME=1
ifeq ($(OS_NAME),1)
	export CLIBS=-I/usr/local/libusb/include/ -L/usr/local/libusb/lib/ -lpthread  -ldl  -lusb-1.0 
else
	export CLIBS=-lpthread  -lrt  -luci -lusb-1.0 -lcurl -ldl
endif



.PHONY: all clean prepare

all:prepare
	make -C $(SRC_PATH)
	@echo guoju project build done...
	
	
prepare:
	mkdir -p $(TARGET)
	
	
clean:
	rm -rf $(TARGET)














